<?php /* Smarty version Smarty-3.1.12, created on 2016-07-22 16:03:35
         compiled from "D:\phpStudy\WWW\demonew\dm\xycms\setting.tpl" */ ?>
<?php /*%%SmartyHeaderCode:9277578339c8ec8ea0-32482421%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'fd7e298ec7ada9701ca1a6e1b04b5cf8b7135981' => 
    array (
      0 => 'D:\\phpStudy\\WWW\\demonew\\dm\\xycms\\setting.tpl',
      1 => 1469174613,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '9277578339c8ec8ea0-32482421',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.12',
  'unifunc' => 'content_578339c9141b09_72666568',
  'variables' => 
  array (
    'page_charset' => 0,
    'copyright_author' => 0,
    'action' => 0,
    'config' => 0,
    'version' => 0,
    'copyr' => 0,
    'keyword1' => 0,
    'keyword2' => 0,
    'keyword3' => 0,
    'f_keyword1' => 0,
    'f_keyword2' => 0,
    'f_keyword3' => 0,
    'key' => 0,
    'nameword' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_578339c9141b09_72666568')) {function content_578339c9141b09_72666568($_smarty_tpl) {?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $_smarty_tpl->tpl_vars['page_charset']->value;?>
" />
<title>站点设置</title>
<meta name="author" content="<?php echo $_smarty_tpl->tpl_vars['copyright_author']->value;?>
" />
<link type="text/css" rel="stylesheet" href="xycms/css/admin.css" media="screen" />
<link type="text/css" rel="stylesheet" href="xycms/css/other.css" media="screen" />
<script type='text/javascript' src='js/jquery-1.8.3.min.js'></script>
<script type='text/javascript' src='js/command.js'></script>
<script type="text/javascript" src='../data/editor/kindeditor.js'></script>
</head>
<body>
<?php if ($_smarty_tpl->tpl_vars['action']->value==''){?>
<div class="main-wrap">
  <form name="myform" method="post" action="xycms_setting.php">
  <input type="hidden" name="action" value="savesetting" />
  <div class="path"><p>当前位置：系统设置<span>&gt;</span>统计设置</p></div>
  <div class="main-cont">
    <div>
	<h3 class="title">其它设置</h3>
	<div class="set-area">
	  <div class="form web-info-form">
		<div class="form-row">
		  <label for="declare" class="form-field">流量统计代码</label>
		  <div class="form-cont"><textarea name="tjcode" id="tjcode" class="input-area area-s4 code-area" style="width:580px;height:60px;"><?php echo $_smarty_tpl->tpl_vars['config']->value['tjcode'];?>
</textarea></div>
		</div>
		<div class="form-row">
		  <label for="declare" class="form-field">统计跳转链接</label>
		  <div class="form-cont"><input name="tj_url" id="tj_url" class="input-txt" type="text" value="<?php echo $_smarty_tpl->tpl_vars['config']->value['tj_url'];?>
" style="width:580px;" /></div>
		</div>
		<div class="form-row">
		  <label for="declare" class="form-field">产品分类<br />Descri模板</label>
		  <div class="form-cont"><textarea name="pcate_d" id="pcate_d" class="input-area area-s4 code-area" style="width:580px;height:40px;" ><?php echo $_smarty_tpl->tpl_vars['config']->value['pcate_d'];?>
</textarea></div>
		</div>
		<div class="form-row">
		  <label for="declare" class="form-field">产品详细<br />Descri模板</label>
		  <div class="form-cont"><textarea name="plist_d" id="plist_d" class="input-area area-s4 code-area" style="width:580px;height:40px;" ><?php echo $_smarty_tpl->tpl_vars['config']->value['plist_d'];?>
</textarea></div>
		</div>    
		<div class="form-row">
		  <label for="declare" class="form-field">分类<br />Descri模板</label>
		  <div class="form-cont"><textarea name="pdetail_d" id="pdetail_d" class="input-area area-s4 code-area" style="width:580px;height:40px;" ><?php echo $_smarty_tpl->tpl_vars['config']->value['pdetail_d'];?>
</textarea></div>
		</div> 
		<div class="form-row">
		  <label for="declare" class="form-field">详细页<br />Descri模板</label>
		  <div class="form-cont"><textarea name="pdetail_page" id="pdetail_page" class="input-area area-s4 code-area" style="width:580px;height:40px;" ><?php echo $_smarty_tpl->tpl_vars['config']->value['pdetail_page'];?>
</textarea></div>
		</div>
		<div class="form-row">
		  <label for="declare" class="form-field">百度商桥</label>
		  <div class="form-cont"><textarea name="bridge" id="pdetail_d" class="input-area area-s4 code-area" style="width:580px;height:60px;" ><?php echo $_smarty_tpl->tpl_vars['config']->value['bridge'];?>
</textarea></div>
		</div> 
		<div class="form-row">
		  <label for="declare" class="form-field">防复制代码</label>
		  <div class="form-cont"><textarea name="copy" id="pdetail_d" class="input-area area-s4 code-area" style="width:580px;height:60px;" ><?php echo $_smarty_tpl->tpl_vars['config']->value['copy'];?>
</textarea></div>
		</div> 
       <div class="btn-area"><input type="submit" name="btn_save" class="button" value="更新保存" /></div>     
	  </div>
	</div>
   </div>     
  </div>
  </form>
</div>

<?php }elseif($_smarty_tpl->tpl_vars['action']->value=='config'){?>
<div class="main-wrap">
  <div class="path"><p>当前位置：系统设置<span>&gt;</span>站点设置</p></div>
  <div class="main-cont">
	<h3 class="title">站点设置</h3>
    <form name="myform" method="post" action="xycms_setting.php">
    <input type="hidden" name="action" value="saveconfig" />
	<table class='table_form'> 
		<tr>
			<th width="110">网站地址：</th> 
			<td><input name="siteurl" id="siteurl" class="input-txt" type="text" value="<?php echo $_smarty_tpl->tpl_vars['config']->value['siteurl'];?>
" /><span id="dsiteurl"></span><p class="form-tips"></p></td>
		</tr>
		<tr>
			<th>是否开启301：</th>
			<td>  	 
				<input type="radio" name="open301" value="1" <?php if ($_smarty_tpl->tpl_vars['config']->value['open301']==1){?>checked="checked"<?php }?> />开启
				<input type="radio" name="open301" value="0" <?php if ($_smarty_tpl->tpl_vars['config']->value['open301']==0){?>checked="checked"<?php }?> />关闭
			</td>
		</tr> 
		<tr>
			<th>版本切换</th>
			<td>  	 
				<input type="radio" name="fuxing" value="fuxing" <?php if ($_smarty_tpl->tpl_vars['version']->value=='fuxing'){?>checked="checked"<?php }?> />福星
				<input type="radio" name="fuxing" value="xiangyun" <?php if ($_smarty_tpl->tpl_vars['version']->value=='xiangyun'){?>checked="checked"<?php }?> />祥云
			</td>
		</tr>
		<tr>
			<th>是否开启Powered：</th>
			<td>  	 
				<input type="radio" name="copyr" value="true" <?php if ($_smarty_tpl->tpl_vars['copyr']->value=='true'){?>checked="checked"<?php }?> />打开
				<input type="radio" name="copyr" value="false" <?php if ($_smarty_tpl->tpl_vars['copyr']->value=='false'){?>checked="checked"<?php }?> />关闭
			</td>
		</tr>
		<tr>
			<th>语言版本：</th> 
			<td><label>前台是否开启语言版本：<input type="checkbox" name="translate" id="translate" value="1" <?php if ($_smarty_tpl->tpl_vars['config']->value['translate']==1){?>checked="checked"<?php }?> /></label></td>
		</tr>
	  <tr>
	   <th>默认缩略图大小：</th> 
	   <td>宽：<input type="text" name="thumbwidth" id="thumbwidth" size="5" value="<?php echo $_smarty_tpl->tpl_vars['config']->value['thumbwidth'];?>
" /> 像素（px） ， 高：<input type="text" name="thumbheight" id="thumbheight" size="5" value="<?php echo $_smarty_tpl->tpl_vars['config']->value['thumbheight'];?>
" /> 像素（px） ，图片比率：<input type="text" name="ratio" id="ratio" size="5" value="<?php echo $_smarty_tpl->tpl_vars['config']->value['ratio'];?>
" /> 倍 </td>
	  </tr>	  
	  <tr>
	   <th>全站图片大小：</th> 
	   <td>宽：<input readonly="readonly" style="cursor:not-allowed;" type="text" name="uploadwidth" id="uploadwidth" size="5" value="<?php echo $_smarty_tpl->tpl_vars['config']->value['uploadwidth'];?>
" /> 像素（px） ， 高：<input readonly="readonly" style="cursor:not-allowed;" type="text" name="uploadheight" id="uploadheight" size="5" value="<?php echo $_smarty_tpl->tpl_vars['config']->value['uploadheight'];?>
" /> 像素（px）</td>
	  </tr>	
	  <tr style="display:none">
	   <th>水印设置：</th> 
		<td><input type="radio" name="watermarkflag" value="1"<?php if ($_smarty_tpl->tpl_vars['config']->value['watermarkflag']==1){?> checked<?php }?> />是，<input type="radio" name="watermarkflag" value="0"<?php if ($_smarty_tpl->tpl_vars['config']->value['watermarkflag']==0){?> checked<?php }?> />否</td>
	  </tr>	  
	  <tr style="display:none">
	   <th>水印图片地址：</th> 
		<td><input type="text" name="watermarkfile" id="watermarkfile" size="45" value="<?php echo $_smarty_tpl->tpl_vars['config']->value['watermarkfile'];?>
" /> 只支持JPG/GIF/PNG格式，推荐用透明的png图片 </td>
	  </tr>	  	  	   	  	  	  	   	  	   	  	  	  	  
	  <tr>
		<th></th>
		<td><input type="submit" name="btn_save" class="button" value="更新保存" /></td>
	  </tr>	  
	</table>
	</form>
  </div>
  <div style="clear:both;"></div>
</div>

<?php }elseif($_smarty_tpl->tpl_vars['action']->value=='set'){?>
<div class="main-wrap">
  <div class="path"><p>当前位置：系统设置<span>&gt;</span>站点设置</p></div>
  <div class="main-cont">
	<h3 class="title">站点设置</h3>
    <form name="myform" method="post" action="xycms_setting.php">
    <input type="hidden" name="action" value="saveset" />
	<table class='table_form senior'>
		<tr>
			<th width="80">网站名称：</th> 
			<td><input name="sitename" id="sitename" class="input-txt" type="text" value="<?php echo $_smarty_tpl->tpl_vars['config']->value['sitename'];?>
" /><span id="dsitename"></span></td>
		</tr>
		<tr>
			<th width="80">手机网站名称：</th>
			<td><input name="mtitle" id="mtitle" class="input-txt" type="text" value="<?php echo $_smarty_tpl->tpl_vars['config']->value['mtitle'];?>
" /><span id="mtitle"></span></td>
		</tr>
		<tr>
			<th width="80">后置长尾词：</th> 
			<td><input name="tailword" id="tailword" class="input-txt" type="text" value="<?php echo $_smarty_tpl->tpl_vars['config']->value['tailword'];?>
" /><span id="tailword"></span><span id='dtag' class='new_post'>长尾词最多3个，以英文 ',' 逗号分开</span> </td>
		</tr>		
		<tr>
			<th>备案号码：</th> 
			<td><input name="icpcode" id="icpcode" class="input-txt" type="text" value="<?php echo $_smarty_tpl->tpl_vars['config']->value['icpcode'];?>
" /><span id="dicpcode"></span></td>
		</tr>
		<tr>
			<th>手机版直拨电话：</th> 
			<td><input name="phone" id="phone" class="input-txt" type="text" value="<?php echo $_smarty_tpl->tpl_vars['config']->value['phone'];?>
" /><span id="dicpcode"></span><span class="tips">&nbsp;&nbsp;&nbsp;</span></td>
		</tr>
		<tr>
			<th width="110">询盘手机绑定：</th> 
			<td><input name="tel" id="tel" class="input-txt" type="text" value="<?php echo $_smarty_tpl->tpl_vars['config']->value['tel'];?>
" /><span>&nbsp;&nbsp;&nbsp;</span></td>
		</tr> 	  	  	 	
		<tr>
			<th>留言到手机：</th> 
			<td><label>留言是否发布到手机：<input type="checkbox" name="message_tel" id="m_tle" value="1" <?php if ($_smarty_tpl->tpl_vars['config']->value['message_tel']==1){?>checked="checked"<?php }?> /></label></td>
		</tr>
		<tr>
			<th>防复制代码：</th> 
			<td><label>是否开启防复制代码：<input type="checkbox" name="copynum" id="copy" value="1" <?php if ($_smarty_tpl->tpl_vars['config']->value['copynum']==1){?>checked="checked"<?php }?> /></label></td>
		</tr>
		<tr>
			<th>技术支持：</th> 
			<td>
				名称：<input name="agent_name" id="tj_url" class="input-txt input2" type="text" value="<?php echo $_smarty_tpl->tpl_vars['config']->value['agent_name'];?>
" />
				网址：<input name="agent_url" id="tj_url" class="input-txt input2" type="text" value="<?php echo $_smarty_tpl->tpl_vars['config']->value['agent_url'];?>
" />
			</td>
		</tr>
		<tr style="height:40px;">
			<th>产品首页分类列表：</th> 
			<td>产品首页是否显示分类列表页：<input type="checkbox" name="custom_tel" id="cus_tle" value="1" <?php if ($_smarty_tpl->tpl_vars['config']->value['custom_tel']==1){?>checked="checked"<?php }?> />&nbsp;&nbsp;</br>
			<span id="categorylist">分类显示产品数：
				<input name="categorynumber" style="width:50px;" id="categorynumber" class="input-txt input2" type="text" size='5' value="<?php echo $_smarty_tpl->tpl_vars['config']->value['categorynumber'];?>
" />
			</span>
			</td>
			<script type="text/javascript">
			  $(function(){
			  	if($("#cus_tle").prop("checked") == false){
			  		$("#categorylist").hide();
			  	}else{
			  		$("#categorylist").show();
			  	}
			  	$("#cus_tle").change(function(){
			  		if($("#cus_tle").prop("checked") == true){
			  			$("#categorylist").show(300);
			  		}else{
			  			$("#categorylist").hide(300);
			  		}
			  	});
			  });
			</script>
		</tr>
		<tr>
			<th>产品列表页描述：</th> 
			<td><textarea name="prodescription" id="prodescription" class="input-area area-s4 code-area" style="width:553px;height:60px;"><?php echo $_smarty_tpl->tpl_vars['config']->value['prodescription'];?>
</textarea><span>描述字数不要大于150个字符！</span>
			</td>
		</tr>	  	  	 	
		<tr>
			<th>分页数量</th>  
			<td>
			<div class="pagecount">	
				新闻：每页  <input type='text' name='newspagesize' id='newspagesize' size='5' value="<?php echo $_smarty_tpl->tpl_vars['config']->value['newspagesize'];?>
" />
				<span>产品：</span>每页 <input type='text' name='productpagesize' id='productpagesize' size='5' value="<?php echo $_smarty_tpl->tpl_vars['config']->value['productpagesize'];?>
" />
				<span>案例：</span>每页 <input type='text' name='casepagesize' id='casepagesize' size='5' value="<?php echo $_smarty_tpl->tpl_vars['config']->value['casepagesize'];?>
" />
				<span>下载：每页 </span><input type='text' name='downpagesize' id='downpagesize' size='5' value="<?php echo $_smarty_tpl->tpl_vars['config']->value['downpagesize'];?>
" />
				<span>招聘：每页  </span><input type='text' name='jobpagesize' id='jobpagesize' size='5' value="<?php echo $_smarty_tpl->tpl_vars['config']->value['jobpagesize'];?>
" />
			</div>
		</td>
	  </tr>
	  <tr>
	   <th>在线QQ客服：</th> 
	   <td>  	 
	    <input type="radio" name="qqstatus" id="qqstatus" value="1" <?php if ($_smarty_tpl->tpl_vars['config']->value['qqstatus']==1){?>checked="checked"<?php }?> />开启
	    <input type="radio" name="qqstatus" id="qqstatus" value="0" <?php if ($_smarty_tpl->tpl_vars['config']->value['qqstatus']==0){?>checked="checked"<?php }?> />关闭
	   </td>
	  </tr> 
	  <tr>
	   <th>底部留言：</th>
	   <td>  	 
	    <input type="radio" name="msgstatus" id="qqstatus" value="1" <?php if ($_smarty_tpl->tpl_vars['config']->value['msgstatus']==1){?>checked="checked"<?php }?> />开启
	    <input type="radio" name="msgstatus" id="qqstatus" value="0" <?php if ($_smarty_tpl->tpl_vars['config']->value['msgstatus']==0){?>checked="checked"<?php }?> />关闭
	   </td>
	  </tr> 	 	   	  	  	  	  
	  <tr>
	   <th>二维码：</th> 
		<td>
		  <input type="hidden" name="uploadfiles_qr" id="uploadfiles" class="uploadfiles_qr"  value="<?php echo $_smarty_tpl->tpl_vars['config']->value['qr_code'];?>
" />
		  <?php if ($_smarty_tpl->tpl_vars['config']->value['qr_code']!=''){?>
		  	 <img class='upload_img upload_img_qr' src="../<?php echo $_smarty_tpl->tpl_vars['config']->value['qr_code'];?>
" />
		  <?php }else{ ?>
		     <img class='upload_img' /> 
		  <?php }?>
		  <a href="javascript:void(0)" class="pic_remove">删除</a>
		  <iframe id='iframe_t' class="iframe_t1" frameborder='0' scrolling='no' width='450' height='25' src='upload_input.php?filepath=other&is_thumb=2'></iframe>
		  <script type="text/javascript">
		   var t = "<?php echo $_smarty_tpl->tpl_vars['config']->value['qr_code'];?>
";
		    if(t != ''){
		    	$('.uploadfiles_qr').siblings(".upload_img").css("display","block");
		    	$('.uploadfiles_qr').siblings(".pic_remove").css("display","block");
		    	$('.uploadfiles_qr').siblings("#iframe_t").css("display","none");
		    }
		  </script>		  	
		</td>
	  </tr>
	  <tr>
	   <th>LOGO图案：</th> 
		<td>
		  <input type="hidden" name="uploadfiles" id="uploadfiles" class="logoimg"  value="<?php echo $_smarty_tpl->tpl_vars['config']->value['logoimg'];?>
" />
		  <?php if ($_smarty_tpl->tpl_vars['config']->value['logoimg']!=''){?>
		  	 <img class='upload_img' src="../<?php echo $_smarty_tpl->tpl_vars['config']->value['logoimg'];?>
" />
		  <?php }else{ ?>
		     <img class='upload_img' /> 
		  <?php }?>
		  <a href="javascript:void(0)" class="pic_remove">删除</a>
		  <iframe id='iframe_t' frameborder='0' scrolling='no' width='450' height='25' src='upload_input.php?filepath=other&is_thumb=2&index=2'></iframe>
		  <script type="text/javascript">
		   var t = "<?php echo $_smarty_tpl->tpl_vars['config']->value['logoimg'];?>
";
		    if(t != ''){
		    	$('.logoimg').siblings(".upload_img").css("display","block");
		    	$('.logoimg').siblings(".pic_remove").css("display","block");
		    	$('.logoimg').siblings("#iframe_t").css("display","none");
		    }
		  </script>		  	
		</td>
	  </tr>
	  <tr>
	   <th>手机站icon图片：</th>
		<td>
		  <input type="hidden" name="uploadfiles_icon" id="uploadfiles" class="logoimg_icon"  value="<?php echo $_smarty_tpl->tpl_vars['config']->value['icon'];?>
" />
		  <?php if ($_smarty_tpl->tpl_vars['config']->value['icon']!=''){?>
		  	 <img class='upload_img' src="../<?php echo $_smarty_tpl->tpl_vars['config']->value['icon'];?>
" />
		  <?php }else{ ?>
		     <img class='upload_img' /> 
		  <?php }?>
		  <a href="javascript:void(0)" class="pic_remove">删除</a>
		  <iframe id='iframe_t' frameborder='0' scrolling='no' width='450' height='25' src='upload_input.php?filepath=m&is_thumb=2&index=3'></iframe>
		  <script type="text/javascript">
		   var t = "<?php echo $_smarty_tpl->tpl_vars['config']->value['icon'];?>
";
		    if(t != ''){
		    	$('.logoimg_icon').siblings(".upload_img").css("display","block");
		    	$('.logoimg_icon').siblings(".pic_remove").css("display","block");
		    	$('.logoimg_icon').siblings("#iframe_t").css("display","none");
		    }
		  </script>		  	
		</td>
	  </tr>
	  <tr>
	   <th>PC站ico图片：</th> 
		<td>
		  <input type="hidden" name="uploadfiles_pcico" id="uploadfiles" class="logoimg_pcico"  value="<?php echo $_smarty_tpl->tpl_vars['config']->value['pcico'];?>
" />
		  <?php if ($_smarty_tpl->tpl_vars['config']->value['pcico']!=''){?>
		  	 <img class='upload_img' src="../<?php echo $_smarty_tpl->tpl_vars['config']->value['pcico'];?>
" />
		  <?php }else{ ?>
		     <img class='upload_img' /> 
		  <?php }?>
		  <a href="javascript:void(0)" class="pic_remove">删除</a>
		  <iframe id='iframe_t' frameborder='0' scrolling='no' width='450' height='25' src='upload_input.php?filepath=ico&is_thumb=2&index=4'></iframe>
		  <script type="text/javascript">
		   var t = "<?php echo $_smarty_tpl->tpl_vars['config']->value['pcico'];?>
";
		    if(t != '')
		    {
		    	$('.logoimg_pcico').siblings(".upload_img").css("display","block");
		    	$('.logoimg_pcico').siblings(".pic_remove").css("display","block");
		    	$('.logoimg_pcico').siblings("#iframe_t").css("display","none");
		    }
		  </script>
		</td>
	  </tr>	 
	  	  <tr>
	   <th>手机站LOGO图片：</th>
		<td>
		  <input type="hidden" name="uploadfiles_webimg" id="uploadfiles" class="logoimg_webimg"  value="<?php echo $_smarty_tpl->tpl_vars['config']->value['webimg'];?>
" />
		  <?php if ($_smarty_tpl->tpl_vars['config']->value['webimg']!=''){?>
		  	 <img class='upload_img' src="../<?php echo $_smarty_tpl->tpl_vars['config']->value['webimg'];?>
" />
		  <?php }else{ ?>
		     <img class='upload_img' /> 
		  <?php }?>
		  <a href="javascript:void(0)" class="pic_remove">删除</a>
		  <iframe id='iframe_t' frameborder='0' scrolling='no' width='450' height='25' src='upload_input.php?filepath=other&is_thumb=2&index=5'></iframe>
		  <script type="text/javascript">
		   var t = "<?php echo $_smarty_tpl->tpl_vars['config']->value['webimg'];?>
";
		    if(t != ''){
		    	$('.logoimg_webimg').siblings(".upload_img").css("display","block");
		    	$('.logoimg_webimg').siblings(".pic_remove").css("display","block");
		    	$('.logoimg_webimg').siblings("#iframe_t").css("display","none");
		    }
		  </script>		  	
		</td>
	  </tr>   	  	  
	  
	  <tr>
		<th></th>
		<td><input type="submit" name="btn_save" class="button" value="更新保存" /></td>
	  </tr>	  
	</table>
	</form>
  </div>
  <div style="clear:both;"></div>
</div>

<?php }elseif($_smarty_tpl->tpl_vars['action']->value=='seo'){?>
<div class="main-wrap">
  <div class="path"><p>当前位置：系统设置<span>&gt;</span>站点SEO设置</p></div>
  <div class="main-cont">
	<h3 class="title">站点SEO设置</h3>
    <form name="myform" method="post" action="xycms_setting.php">
    <input type="hidden" name="action" value="saveseo" />
	<table class='table_form' id="seosetting">
	  <tr>
		<th width="150">标题（Title）：</th>
		<td><input type="text" name="sitetitle" id="sitetitle" size="67" value="<?php echo $_smarty_tpl->tpl_vars['config']->value['sitetitle'];?>
" style="padding:2px;" />
		</td>
	  </tr>
      <tr>
		<th>主关键字（Keywords）：</th>
        <td>
         <input type="text" name="keyword1" id="keyword1" size="14" value="<?php echo $_smarty_tpl->tpl_vars['keyword1']->value;?>
" style="padding:2px;" />
         &nbsp;&nbsp;<input type="text" name="keyword2" id="keyword2" size="14" value="<?php echo $_smarty_tpl->tpl_vars['keyword2']->value;?>
" style="padding:2px;" />
         &nbsp;&nbsp;<input type="text" name="keyword3" id="keyword3" size="14" value="<?php echo $_smarty_tpl->tpl_vars['keyword3']->value;?>
" style="padding:2px;" />
        </td>
	  </tr>
	  <tr>
			<th>网站名称（Webname）：</th>
			<td><input name="webname" id="webname" class="input-txt" type="text" value="<?php echo $_smarty_tpl->tpl_vars['config']->value['webname'];?>
" /></td>
	  </tr>
      <tr>
		<th>副关键字（Fkeywords）：</th>
        <td>
        <input type="text" name="f_keyword1" id="f_keyword1" size="14" value="<?php echo $_smarty_tpl->tpl_vars['f_keyword1']->value;?>
" style="padding:2px;" />
        &nbsp;&nbsp;<input type="text" name="f_keyword2" id="f_keyword2" size="14" value="<?php echo $_smarty_tpl->tpl_vars['f_keyword2']->value;?>
" style="padding:2px;" />
        &nbsp;&nbsp;<input type="text" name="f_keyword3" id="f_keyword3" size="14" value="<?php echo $_smarty_tpl->tpl_vars['f_keyword3']->value;?>
" style="padding:2px;" /></br>
        <input type="text" name="f_keyword4" id="f_keyword4" size="14" class="f-keyword-top" value="<?php echo $_smarty_tpl->tpl_vars['key']->value[6];?>
" style="padding:2px;" />
        &nbsp;&nbsp;<input type="text" name="f_keyword5" id="f_keyword5" size="14" class="f-keyword-top" value="<?php echo $_smarty_tpl->tpl_vars['key']->value[7];?>
" style="padding:2px;" />
        &nbsp;&nbsp;<input type="text" name="f_keyword6" id="f_keyword6" size="14" class="f-keyword-top" value="<?php echo $_smarty_tpl->tpl_vars['key']->value[8];?>
" style="padding:2px;" /></br>
        <input type="text" name="f_keyword7" id="f_keyword7" size="14" class="f-keyword-top" value="<?php echo $_smarty_tpl->tpl_vars['key']->value[9];?>
" style="padding:2px;" />
        &nbsp;&nbsp;<input type="text" name="f_keyword8" id="f_keyword8" size="14" class="f-keyword-top" value="<?php echo $_smarty_tpl->tpl_vars['key']->value[10];?>
" style="padding:2px;" />
        &nbsp;&nbsp;<input type="text" name="f_keyword9" id="f_keyword9" size="14" class="f-keyword-top" value="<?php echo $_smarty_tpl->tpl_vars['key']->value[11];?>
" style="padding:2px;" />
        </td>
	  </tr>
	  <tr>
		<th>描述（Description）：<br /><span style="color:#a2a2a2;line-height:30px;">最大字数为：76</span></th>
		<td><textarea name="metadescription" id="metadescription" style="width:50%;height:80px;display:;overflow:auto;font-size:12px;padding:2px;"><?php echo $_smarty_tpl->tpl_vars['config']->value['metadescription'];?>
</textarea><span id="cc1"></span>
         <script> $("#cc1").text("当前字数为："+$("#metadescription").val().length);</script>
        </td>
	  </tr>
	  <tr>
		<th></th>
		<td><input type="submit" name="btn_save" class="button" value="更新保存" /></td>
	  </tr>
	</table>
	</form>
  </div>
  <div style="clear:both;"></div>
</div>
<script type="text/javascript">

   var nameword="<?php echo $_smarty_tpl->tpl_vars['nameword']->value;?>
";
   var oldword ="<?php echo $_smarty_tpl->tpl_vars['config']->value['sitetitle'];?>
";
   
   function addword01(){
   	var sd=oldword.indexOf(nameword);
   	  if(sd > -1)
   	  {  
   	  	$("#sitetitle").val(oldword);
   	  }else if( sd = -1 )
   	  {
   	  	$("#sitetitle").val(oldword+nameword);
   	  }
       
   }
   function addword02(){
   	var sd=oldword.indexOf(nameword);
   	  if(sd > -1)
   	  {  
   	  	var oldwordnew=oldword.replace(nameword,"");
   	  	$("#sitetitle").val(oldwordnew);
   	  }else if( sd = -1 )
   	  {
   	  	$("#sitetitle").val(oldword);
   	  }
   }

</script>
<?php }else{ ?>
暂无信息
<?php }?>
</body>
</html>
<?php }} ?>